<h3>Add a new page</h3>

<?//=validation_errors()?>

<?=form_open('pages/add')?>
<fieldset>
    <legend>Page details</legend>
    
    <p>
        <label>Page</label>
        <input type="text" name="page" value="<?=set_value('page', '')?>" />
        <?=form_error('page')?>
    </p>
    
    <p>
        <label>Content</label>
        <textarea name="content" cols="60" rows="10"><?=set_value('content')?></textarea>
        <br /><?=form_error('content')?>
    </p>
    
    <p>
        <input type="submit" name="btnAdd" value="Add" />
    </p>
</fieldset>
<?=form_close()?>

<?=form_open('pages/add')?>
<fieldset>
    <legend>Form 2</legend>
    
    <p>
        <label>Username</label>
        <textarea name="username" cols="60" rows="10"><?=set_value('username', '')?></textarea>
        <?=form_error('username', 'form2')?>
    </p>
    
    <p>
        <input type="submit" name="btnTest" value="Test" />
    </p>
</fieldset>

<?=form_close()?>